/******************************************************************
 *
 *    tenant, Powered By uyun.cn.
 *
 *    Copyright (c) 2001-2020
 *    https://uyun.cn
 *
 *    Package:     wzg.com.pipe
 *
 *    Filename:    WThread
 *
 *    Description: (用一句话描述该文件做什么)
 *
 *    Copyright:   Copyright (c) 2001-2020
 *
 *    Company:     uyun.cn
 *
 *    @author: 王志刚
 *
 *    @version: 1.0.0
 *
 *    Create at:   2018-01-05 下午5:22
 *
 *    Revision:
 *
 *    2018-01-05 下午5:22
 *        - first revision
 *
 *****************************************************************/
package wzg.com.pipe.string;

import java.io.PipedWriter;

/**
 * WThread(这里用一句话描述这个类的作用)
 *
 * @author wangzg
 * @version 1.0.0
 * @create 2018-01-05 下午5:22
 */
public class WThread extends Thread{
    private WriteData w;
    private PipedWriter p;

    public WThread(WriteData w, PipedWriter p) {
        this.w = w;
        this.p = p;
    }

    @Override
    public void run() {
        w.writeMethod(p);
    }
}
